package com.github.easyms.server.service.auth;

import com.baomidou.mybatisplus.extension.service.IService;
import com.github.easyms.common.entity.auth.Role;

import java.util.List;

/**
 * 角色业务
 *
 * @author Leo.Liao
 * @date 2020-05-02 02:34:45
 */
public interface RoleService extends IService<Role> {

    /**
     * 根据角色名称获取
     * @param roleName
     * @return
     */
    Role selectByRoleName(String roleName);

    /**
     * 获取角色列表
     * @param condition
     * @return
     */
    List<Role> listCombobox(Role condition,String q);

}
